package com.hsj.demo.dao;

import com.hsj.demo.entity.ChatHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatHistoryDao extends CurdDao<ChatHistory> {
    // 查询两人的聊天记录
    public List<ChatHistory> findByTime(@Param("sourceUserId")Integer sourceUserId,@Param("targetUserId")Integer targetUserId);
    // 修改消息是否已读
    public int update(@Param("id") Integer id,@Param("isRead") Character isRead);
}
